package com.example.activityjump

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class ActivityB : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_b)
        tv.text = "ActivityB"
        tv.setOnClickListener { back() }
    }

    private fun back() {
        finish()
//        overridePendingTransition(R.anim.exit_left, R.anim.exit_right)
        overridePendingTransition(0, R.anim.exit_bottom)
    }
}
